﻿@model OnlineExam.Entities.User

@{
    ViewBag.Title = "Details";
}

<h2>Details</h2>

<fieldset>
    <legend>User</legend>

    <div class="display-label">UID</div>
    <div class="display-field">@Model.UID</div>

    <div class="display-label">Name</div>
    <div class="display-field">@Model.Name</div>

    <div class="display-label">Salt</div>
    <div class="display-field">@Model.Salt</div>

    <div class="display-label">Email</div>
    <div class="display-field">@Model.Email</div>

    <div class="display-label">HashedPassword</div>
    <div class="display-field">@Model.HashedPassword</div>

    <div class="display-label">Status</div>
    <div class="display-field">@Model.Status</div>

    <div class="display-label">CreatedAt</div>
    <div class="display-field">@String.Format("{0:g}", Model.CreatedAt)</div>

    <div class="display-label">UpdatedAt</div>
    <div class="display-field">@String.Format("{0:g}", Model.UpdatedAt)</div>

    <div class="display-label">Attendances</div>
    <div class="display-field">@(Model.Attendances == null ? "None" : Model.Attendances.Count.ToString())</div>

    <div class="display-label">Posts</div>
    <div class="display-field">@(Model.Posts == null ? "None" : Model.Posts.Count.ToString())</div>

    <div class="display-label">UserMetas</div>
    <div class="display-field">@(Model.UserMetas == null ? "None" : Model.UserMetas.Count.ToString())</div>
</fieldset>
<p>
    @Html.ActionLink("Edit", "Edit", new { id=Model.ID }) |
    @Html.ActionLink("Back to List", "Index")
</p>


